/*
* 1. 这个文件里面封装和当前模块相关的接口
* 2. 这个文件里面使用我们自己对axios封装的 request.ts
* */
import instance from "../utils/httpd.js";


export const getBannerList = () => {
    let url = '/api/v1/banner/bypos?id=62a6f7e1e30a2c5a126f93e3';
    return instance.get(url);
}

export const getNavContentList = (data) =>{
    const queryString = new URLSearchParams(data).toString();
    let url = '/api/v1/company/work-list?'+queryString;
    return instance.get(url)
}
export const getDetail = (data) =>{
    const queryString = new URLSearchParams(data).toString();
    let  url = '/api/v1/company/work-info?' + queryString
    return instance.get(url)
}

export const loginByphone = (data) =>{
    let url = '/api/user/phone-login'
    return instance.post(url, data)
}

export const getCompanyList = (data) =>{
    const queryString = new URLSearchParams(data).toString();
    let url = '/api/v1/company/company-list?' + queryString
    return instance.get(url)
}

export const getCompanyDetail=(data)=>{
    const queryString = new URLSearchParams(data).toString();
    let  url = 'api/v1/company/company-info?' + queryString
    return instance.get(url)
}